/** =================================================
 * 静态路由
 * keepAlive: true // 组件需要缓存
 *------------------------------------------------- */

import AntdLayout from '@/layout/TabsLayout.vue'
import DescPage from '@/layout/DescPage.vue'
import NonePage from '@/layout/NonePage.vue'
export default [
  {
    path: '/login',
    name: 'Login',
    meta: { title: '用户登录', keepAlive: true , auth: false},
    component: () => import('@/views/Login.vue')
  },
  {
    path: '/',
    name: 'Index',
    redirect: '/dashboard',
    meta: { title: '主页', scrollTop: 0 },
    component: AntdLayout,
    children: [
      {
        path: '/none',
        name: 'NonePage',
        meta: { title: 'None', auth: true },
        component: NonePage,
        children: []
      },
      {
        path: '/desc',
        name: 'DescPage',
        meta: { title: 'Description', auth: true },
        component: DescPage,
        children: [
          {
            path: '/dashboard',
            name: 'Dashboard',
            meta: { title: '仪表板', auth: true },
            component:() => import('@/views/Dashboard.vue')
          },
          {
            path: '/workplatform',
            name: 'Workplatform',
            meta: { title: '工作台', auth: true },
            component: () => import('@/views/Workplatform.vue')
          },
          {
            path: '/workplace',
            name: 'Workplace',
            meta: { title: '工作间', scrollTop: 0 , auth: true },
            component: () => import('@/views/Workplace.vue')
          },
          {
            path: '/about',
            name: 'About',
            meta: { title: '关于系统', keepAlive: true , auth: true},
            component: () => import('@/views/About.vue')
          }
        ]
      },

    ]
  },
  {
    path: '/404NotFund',
    name: '404NotFund',
    meta: { title: '用户登录', keepAlive: true , auth: false},
    component: () => import('@/views/404NotFund.vue')
  },
  {
    path: '/baidu-map',
    name: 'baidumap',
    meta: { title: '百度地图', keepAlive: true , auth: false},
    component: () => import('@/views/BaiduMap.vue')
  },
  {
    path: '/demo',
    name: 'demo',
    meta: { title: '演示', keepAlive: true , auth: false},
    component: () => import('@/views/Demo.vue')
  },
]
